package com.igeek.compus.test.user.service.impl;

import com.igeek.compus.test.menu.entity.Menu;
import com.igeek.compus.test.user.dao.UserDao;
import com.igeek.compus.test.user.entity.User;
import com.igeek.compus.test.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.jws.soap.SOAPBinding;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> getUserListByPage(User user){
        return userDao.getUserListByPage(user);
    }

    @Override
    public int getUserListCount(User user){
        return userDao.getUserListCount(user);
    }

    @Override
    public User getUserInfoById(Integer id){
        return userDao.getUserInfoById(id);
    }

    @Override
    public int deleteUserById(User user){
        return userDao.deleteUserById(user);
    }

    @Override
    public int deleteUserList(List<String> userIdList){
        return userDao.deleteUserList(userIdList);
    }

    @Override
    public int addUser(User user){
        return userDao.addUser(user);
    }

    @Override
    public int updateUser(User user){
        return userDao.updateUser(user);
    }

}
